package com.wx.fresh.platform.controller;


import com.wx.fresh.common.util.CommonResult;
import com.wx.fresh.platform.vo.orderVo.LogisticsOrderDetailVo;
import com.wx.fresh.platform.vo.orderVo.POrderVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 苏辞
 * 平台相关的订单
 * @Date 2022/4/19 15:39
 */
@RestController
@RequestMapping("Order")
@Api(tags = "平台订单模块", value = "平台订单查询接口")
public class PlatformOrderController {

    /**
     * 查询订单的状态默认为查询全部
     */
    @ApiOperation("订单查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "state", value = "订单状态", required = true, paramType = "form")
    })
    @GetMapping("findAllOrder")
    public CommonResult OrderFindAll(POrderVO orderVO) {
        return null;

    }

    /**
     * 根据订单id查询订单详情
     */
    @GetMapping("OrderDetailById")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "订单id", required = true, paramType = "form")
    })
    public CommonResult<LogisticsOrderDetailVo> OrderDetailById(int id) {
        return null;
    }

}
